Skip to content

Instantly share code, notes, and snippets.

@mortuusars
mortuusars / minecraft_fonts.md
Last active December 6, 2025 23:13
Minecraft Fonts

Fonts and their symbols

Symbols are alighed with previews for easy finding and copying.

accented

Preview:

accented

Symbols:

@ctoth
ctoth / CLAUDE.md
Created November 30, 2025 20:46
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.

This is correct for code, where:

  • Reality has hard edges (the compiler doesn't care about your intent)
  • Mistakes compound (a wrong assumption propagates through everything built on it)
  • The cost of being wrong exceeds the cost of being slow
@ih2502mk
ih2502mk / list.md
Last active December 6, 2025 23:07
Quantopian Lectures Saved
@Better-Than-You
Better-Than-You / IITM_Dashboard_Session_Restorer.user.js
Last active December 6, 2025 23:08
IITM Dashboard Session Restorer UserScript
// ==UserScript==
// @name IITM Dashboard Session Restorer
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Restores session cookies for IITM Student Dashboard on load
// @author Sujatro-Chakraborty
// @match https://app.onlinedegree.iitm.ac.in/*
// @run-at document-start
// @grant none
// @updateURL https://gist.githubusercontent.com/Better-Than-You/gist_id/raw/IITM_Dashboard_Session_Restorer.user.js
package org.example;
import static java.lang.reflect.AccessFlag.PUBLIC;
import static java.lang.reflect.AccessFlag.STATIC;
import static java.util.Objects.requireNonNull;
import static java.util.function.Function.identity;
import static org.example.TyEq.refl;
import static org.example.TypeClass.Witness.Overlap.OVERLAPPABLE;
import static org.example.TypeClass.Witness.Overlap.OVERLAPPING;
import static org.example.TypeClasses.witness;
@mrpeardotnet
mrpeardotnet / PVE-HP-ssacli-smart-storage-admin.md
Last active December 6, 2025 22:57
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@drautb
drautb / read_all_bytes.cpp
Created May 13, 2013 20:24
C++: Read all bytes from a file
/**
* Read all bytes from a file.
*
* Taken from http://codereview.stackexchange.com/questions/22901/reading-all-bytes-from-a-file
*
* Alternate form: static void ReadAllBytes(char const* filename, std::vector<char>& result)
*/
#include <vector>
#include <fstream>
@GameTec-live
GameTec-live / adsbegone-gdlauncher-carbon.patch
Last active December 6, 2025 22:53
A git patch to remove ads and startup animation from gdlauncher. it uses the ability to compile the app.asar file without loosing functionality (no api key needed) to generate a new one with the react components for showing ads stripped out
diff --git a/apps/desktop/packages/main/adSize.ts b/apps/desktop/packages/main/adSize.ts
index 8ab38784..bdf2777a 100644
--- a/apps/desktop/packages/main/adSize.ts
+++ b/apps/desktop/packages/main/adSize.ts
@@ -17,8 +17,8 @@ export default function getAdSize(display?: Display) {
adSize: {
useFallbackAd,
useVertical: true,
- width: 160,
- height: 600
#!/bin/zsh --no-rcs
# https://github.com/tailscale/tailscale/issues/18101
# https://gist.github.com/luckman212/356dfc72396b838a055ec10d315b042b
zmodload zsh/datetime
#get a random peer
ts_json=$(tailscale status --json)
all_peers=$(jq '.Peer | to_entries | map(select(.value.DNSName!="")) | map(.value.DNSName)' <<< "$ts_json")
@NuroDev
NuroDev / schedule-controller.ts
Created November 21, 2025 16:36
⏲️ Schedule Controller - A minimal `Hono` style controller for Cloudflare Workers scheduled handler
export interface ScheduleHandlerContext<E = Env> {
/**
* The scheduled event controller providing details about the cron trigger.
*/
controller: ScheduledController;
/**
* The environment bindings available to the worker.
*/
env: E;
/**